﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using shop.entity;
using shop.dao;
namespace shop.service
{
    public class ImageService
    {
        private ImageDao imageDao = new ImageDao();
        public Image getImage(int id){
            return imageDao.GetImage(id);
        }

        public List<Image> ListImage()
        {
            return imageDao.ListImage();
        }

        public int Add(Image image)
        {
            return imageDao.AddImage(image);
        }
       
        public bool DeleteImage(int id)
        {
            return imageDao.DeleteImage(id);
        }

        public bool UpdateImage(Image image)
        {
            return imageDao.UpdateImage(image);
        }
    }
}